#!/usr/bin/node 

const fs = require('fs'),
      log = console.log;
const filename = process.argv[2] || __filename;

try {
  log(fs.statSync(filename).size);
} catch(e) {
  console.error(e.message);
  process.exit(1);
}
